﻿using System.Web.Security;

namespace KMF.Utility
{
    public static class PasswordUtil
    {
        public static string CreatePasswordHash(this string password, string passwordSalt)
        {                    

            string concatSaltAndPassword = string.Concat(password, passwordSalt);
            return FormsAuthentication.HashPasswordForStoringInConfigFile(concatSaltAndPassword, "sha1");
        }
    }

}
